package com.yunfangdata.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ToString
public class Staff extends BaseDomain {

    private Long id;
    //工号
    private Integer jobNumber;
    //姓名
    private String name;
    //部门
    private Department department;
    //职务
    private DataDict duty;
    //聘用方式
    private DataDict way;
    //学历
    private DataDict education;
    //岗位
    private DataDict post;
    //性别
    private DataDict gender;
    //年龄
    private Integer age;
    //籍贯
    private DataDict place;
    //电话
    private String phone;
    //考勤卡
    private String checkNumber;
    //岗位级别
    private DataDict postrank;
    //邮箱
    private String email;
    //民族
    private DataDict nation;
    //身份证
    private String identitycard;
    //政治面貌
    private DataDict politics;
    //出生日期
    //转换成json格式的日期类型
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    //数据传入使用日期类型
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    private Date dateofbirth;
    //进厂日期
    //转换成json格式的日期类型
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    //数据传入使用日期类型
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date duration;
    //工龄
    private Integer seniority;
    //户口类型
    private DataDict permanent;
    //婚否
    private DataDict marital;
    //家庭住址
    private String home;
    //备注
    private String remark;
    //工资信息
    private PersonageSalary personageSalary;
}